package com.xw.Model;

import com.alibaba.fastjson.JSONObject;

/**
 * 描述:返回前端json对象的封装
 * @author 杨建全
 * @date 2017年2月23日 上午10:42:44
 */
public class JsonResponse {
	
	private String returnCode;			//返回码
	private Object returnData;			//返回数据
	private String returnDesc;			//返回说明
	
	
	public JsonResponse() {
	}
	public JsonResponse(String returnCode) {
		super();
		this.returnCode = returnCode;
		this.returnDesc = "";
		this.returnData = new JSONObject();
	}
	public JsonResponse(String returnCode, String returnDesc) {
		super();
		this.returnCode = returnCode;
		this.returnDesc = returnDesc;
		this.returnData = new JSONObject();
	}
	public JsonResponse(String returnCode, Object returnData, String returnDesc) {
		super();
		this.returnCode = returnCode;
		this.returnData = returnData;
		this.returnDesc = returnDesc;
	}
	public String getReturnCode() {
		return returnCode;
	}
	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}
	public Object getReturnData() {
		return returnData;
	}
	public void setReturnData(Object returnData) {
		this.returnData = returnData;
	}
	public String getReturnDesc() {
		return returnDesc;
	}
	public void setReturnDesc(String returnDesc) {
		this.returnDesc = returnDesc;
	}
	@Override
	public String toString() {
		return "JsonResponse [returnCode=" + returnCode + ", returnData=" + returnData + ", returnDesc=" + returnDesc
				+ "]";
	}
	
}
